﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Twitter.offline
{
    public partial class Index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (System.Web.Security.Membership.GetUser() == null)
                Response.Redirect("Connexion.aspx");
        }

        public IEnumerable<User> getAllMember()
        { 
            Util util = new Util();
            IEnumerable<User> users = util.findAllUserPersisted(util.getMemberByName(System.Web.Security.Membership.GetUser().UserName));
            return users;
        }

    }
}